.class Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;
.super Ljava/lang/Object;
.source "FileChooserActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/FileChooserActivity$j;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/s80;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/FileChooserActivity$j;Les/s80;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->a:Les/s80;

    iput-object p3, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    invoke-static {}, Les/dj;->b()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->a:Les/s80;

    invoke-virtual {v0}, Les/s80;->l()Les/u80;

    move-result-object v0

    iget v0, v0, Les/u80;->a:I

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    const v1, 0x7f1102ad

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/FileChooserActivity;->h(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    const/4 v2, 0x0

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    invoke-virtual {v1, v2, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 6
    :cond_0
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/n0;->z(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    const/4 v3, -0x1

    if-eqz v1, :cond_6

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/FileChooserActivity;->a(Lcom/estrongs/android/pop/app/FileChooserActivity;)Z

    move-result v1

    const/16 v4, 0x1019

    if-eqz v1, :cond_1

    .line 9
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const/4 v2, 0x1

    const-string v3, "setWallpaper"

    .line 10
    invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 11
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 12
    invoke-virtual {v2, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    const-class v3, Lcom/estrongs/android/pop/app/imageviewer/CropImage;

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 14
    invoke-virtual {v2, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0, v2, v4}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    .line 16
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_2

    const-string v5, "crop"

    .line 17
    invoke-virtual {v1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    goto :goto_0

    :cond_2
    move-object v5, v2

    :goto_0
    if-eqz v5, :cond_4

    .line 18
    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string v3, "circle"

    .line 19
    invoke-virtual {v5, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string v3, "circleCrop"

    const-string v5, "true"

    .line 20
    invoke-virtual {v2, v3, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 21
    :cond_3
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    .line 22
    invoke-virtual {v3, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    const-class v5, Lcom/estrongs/android/pop/app/imageviewer/CropImage;

    invoke-virtual {v3, v0, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 24
    invoke-virtual {v3, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 25
    invoke-virtual {v3, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0, v3, v4}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    :cond_4
    if-eqz v1, :cond_5

    const-string v0, "return-data"

    .line 27
    invoke-virtual {v1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 28
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-static {v0}, Les/tj;->a(Landroid/content/Context;)Les/tj;

    move-result-object v0

    .line 29
    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const/16 v4, 0x40

    const-string v5, "outputX"

    invoke-virtual {v1, v5, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    .line 30
    iget-object v4, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v4, v4, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    iget-object v5, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v5, v2}, Les/tj;->a(ILjava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    const-string v1, "data"

    invoke-virtual {v4, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto :goto_1

    .line 31
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 32
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    invoke-virtual {v1, v3, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 33
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 34
    :cond_6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/n0;->k(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/n0;->Q(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/n0;->w(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_7

    goto :goto_3

    .line 35
    :cond_7
    sget-boolean v0, Lcom/estrongs/android/pop/j;->p0:Z

    if-nez v0, :cond_9

    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->b(Lcom/estrongs/android/pop/app/FileChooserActivity;)I

    move-result v0

    if-nez v0, :cond_8

    goto :goto_2

    .line 36
    :cond_8
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f1107f9

    .line 37
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f03000e

    new-instance v4, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a$a;

    invoke-direct {v4, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a$a;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;)V

    .line 38
    invoke-virtual {v0, v1, v3, v4}, Lcom/estrongs/android/ui/dialog/q$n;->a(IILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110299

    .line 39
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 40
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void

    .line 41
    :cond_9
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/FileContentProvider;->a(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 42
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    invoke-virtual {v1, v3, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 43
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 44
    :cond_a
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/FileContentProvider;->a(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 45
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v1, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->c:Landroid/content/Intent;

    invoke-virtual {v1, v3, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 46
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity$j$a;->c:Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/FileChooserActivity$j;->d:Lcom/estrongs/android/pop/app/FileChooserActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void
.end method
